import random

print("===========游戏开始===========")
#人
player = int(input("请问玩家出什么（python基础.石头 2.剪刀 3.布）:"))
#电脑
computer = random.randint(1,3)
print("电脑出：",computer)
if (player == 1 and computer == 2) or (player == 2 and computer == 3) or (player == 3 and computer == 1):
    print("玩家获胜")
elif player == computer:
    print("打平")
else:
    print("玩家输了")